﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Admin.Master" AutoEventWireup="true" CodeBehind="PositionEntry.aspx.cs" Inherits="Legazpi.Payroll.Web.Admin.PositionEntry" %>

<asp:Content ID="Content3" ContentPlaceHolderID="leftContent" runat="server">
            <div class="grid_8">      
                    <%if(IsSuccess) {%>
                        <span class="notification n-success"><%=NotifyText %></span>                                                
                    <%}else if(!IsSuccess && FoundError) {%> 
                        <span class="notification n-attention"><%=NotifyText %></span>
                    <%} %>
                   <div class="module">
                     <h2><span>Add/Update Record Entry</span></h2>
                        
                     <div class="module-body">                      
                            <p>
                                <label>Code:</label>
                                <asp:TextBox ID="CodeTxt" runat="server" CssClass="input-short"></asp:TextBox>
                                <asp:HiddenField ID="PositionId" runat="server" />
                            </p>
                            <p>
                                <label>Description:</label>
                                <asp:TextBox ID="DescTxt" runat="server" CssClass="input-long"></asp:TextBox>
                            </p>
                            <p>
                                <label>Incentive:</label>
                                <asp:TextBox ID="IncentiveTxt" runat="server" CssClass="input-short"></asp:TextBox>
                            </p>
                            <p>
                                <label>Retirement:</label>
                                <asp:TextBox ID="RetirementTxt" runat="server" CssClass="input-short"></asp:TextBox>
                            </p>
                            <p>
                                <label>Uniform Allowance:</label>
                                <asp:TextBox ID="UniformAllowanceTxt" runat="server" CssClass="input-short"></asp:TextBox>
                            </p>
                            <fieldset>
                                <asp:Button id="SubmitBtn" runat="server" Text="Submit" CssClass="submit-green" 
                                    onclick="AddNewBtn_Click" />                                                                                                            
                                <asp:Button id="CancelBtn" runat="server" Text="Cancel" CssClass="submit-gray" 
                                    onclick="CancelBtn_Click" />                                                                                                            
                            </fieldset>
                        
                        
                     </div> <!-- End .module-body -->
                </div> <!-- End .module -->
                <div style="clear:both;"></div>
                    <div class="module">
                         <h2><span>Positions Table</span></h2>
                     
                         <div class="module-body">                                                         
                         <asp:Repeater ID="repeater" runat="server" OnItemCommand="repeater_ItemCommand">
                            <HeaderTemplate>
                                <table width="100%" border="0" class="tablesorter">
                                    <thead>
                                        <th>Id</th>
                                        <th>Code</th>
                                        <th>Description</th>
                                        <th>Incentive</th>
                                        <th>Retirement</th>
                                        <th>Uniform Allowance</th>  
                                        <th width="15%"></th>
                                    </thead>
                                    <tbody>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr class="odd">                                    
                                  <td><%# Eval("Id") %></td>
                                  <td><%# Eval("Code")%></td>
                                  <td><%# Eval("Description")%></td>
                                  <td><%# Eval("Incentive")%></td>
                                  <td><%# Eval("Retirement")%></td>
                                  <td><%# Eval("UniformAllowance")%></td>                                                                    
                                    <td>                                        
                                        <asp:ImageButton ID="SaveLinkBtn" runat="server" ImageUrl="/images/pencil.gif" Width="16" Height="16" AlternateText="update" CommandName="update" CommandArgument=<%# Eval("Id")%> />
                                        <asp:ImageButton ID="DeleteLinkBtn" runat="server" ImageUrl="/images/bin.gif" Width="16" Height="16" AlternateText="delete" CommandName="delete"  CommandArgument=<%# Eval("Id")%> OnClientClick="return confirm('Confirm Delete?');" />                                        
                                    </td>
                                </tr>                            
                            </ItemTemplate>
                            <AlternatingItemTemplate>
                                <tr class="even">                                    
                                  <td><%# Eval("Id") %></td>
                                  <td><%# Eval("Code")%></td>
                                  <td><%# Eval("Description")%></td>
                                  <td><%# Eval("Incentive")%></td>
                                  <td><%# Eval("Retirement")%></td>
                                  <td><%# Eval("UniformAllowance")%></td>                                                                    
                                    <td>                                        
                                        <asp:ImageButton ID="SaveLinkBtn" runat="server" ImageUrl="/images/pencil.gif" Width="16" Height="16" AlternateText="update" CommandName="update" CommandArgument=<%# Eval("Id")%> />
                                        <asp:ImageButton ID="DeleteLinkBtn" runat="server" ImageUrl="/images/bin.gif" Width="16" Height="16" AlternateText="delete" CommandName="delete"  CommandArgument=<%# Eval("Id")%> OnClientClick="return confirm('Confirm Delete?');" />                                        
                                    </td>
                                </tr>                            
                            </AlternatingItemTemplate>
                            <FooterTemplate>
                                    </tbody>
                                </table>
                            </FooterTemplate>
                         </asp:Repeater>                            
                                                   
                         </div> <!-- End .module-body -->

                    </div>  <!-- End .module -->        		   
                                                            
            </div>
</asp:Content>